﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using T = WPFTools.Dialogs;

namespace WPFToolsDemo
{
    /// <summary>
    /// AboutDialog.xaml 的交互逻辑
    /// </summary>
    public partial class AboutDialog : Window
    {
        public AboutDialog()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                T.AboutDialog dlg = new T.AboutDialog(this);

                //var dlg = new AboutDialog(this);
                //dlg.Title = "About the application";
                //dlg.UpdateStatus = "The application is updated.";
                //dlg.Image = new BitmapImage(new Uri(@"pack://application:,,,/DialogDemos;component/pt.png"));

                //// var uri = "http://opensource.linux-mirror.org/trademarks/opensource/web/opensource-400x345.png";
                //// dlg.Image = new BitmapImage(new Uri(uri, UriKind.Absolute));
                dlg.ShowDialog();

                WPFTools.Windows.WindowBase d = new WPFTools.Windows.WindowBase();
                d.Show();

            }
            catch (Exception ex )
            {

                MessageBox.Show(ex.ToString());
            }
           

        }
    }
}
